package demo4;

/**
 * ClassName Tesr
 * Description TODO
 * Author Yanyan
 * Date 2025/11/13 13:50
 * Version 1.0
 */
public class Test {
    public static void main(String[] args) {
        Computer computer = new Computer();

        Mouse mouse = new Mouse();
        Keyboard keyboard = new Keyboard();

        computer.powerOn();

        computer.useDevice(mouse);
        computer.useDevice(keyboard);

        computer.powerOff();
    }
}
